package com.hundunjiang.admin.controller;

import cn.dev33.satoken.annotation.SaCheckPermission;
import cn.dev33.satoken.stp.StpUtil;
import cn.dev33.satoken.util.SaResult;
import com.hundunjiang.modules.form.entity.SysAdmin01;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@Tag(name = "测试")
@RequestMapping("/admin/test")
@RestController
public class TestController {


    @Operation(summary = "测试", description = "测试")
    @RequestMapping(path = "/01", method = RequestMethod.GET)
    public SaResult add() {
        StpUtil.login(10001);
        return SaResult.ok("登录成功");
    }

}
